package com.yuanfeng.goods.mapper;

import com.yuanfeng.goods.dto.ManageGoodsPropertyAddDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ClassName GoodsPropertyIndexMapper
 * @Description 商品与属性值对应表
 * @Author cf
 * @Date 2023/6/27 9:26
 * @Version 1.0
 */
@Mapper
public interface GoodsPropertyIndexMapper {

    /**
     * 添加商品与属性的对应
     * @param propertys
     */
    void insertBatch(@Param("propertys") List<ManageGoodsPropertyAddDTO> propertys);

    /**
     * 删除商品与属性的对应
     * @param commonId
     */
    void deleteByShopId(@Param("commonId")Integer commonId);
}
